package rbac.domain.entity;

import rbac.domain.enums.RoleDataScope;

import java.time.LocalDateTime;

/**
 * ⻆⾊实体类
 */

public class Role extends BaseEntity {
    public String name;
    public RoleDataScope dataScope; //数据访问范围

    public Role() {
    }

    public Role(Integer id, LocalDateTime createAt, LocalDateTime updateAt, String name, RoleDataScope dataScope) {
        super(id, createAt, updateAt);
        this.name = name;
        this.dataScope = dataScope;
    }
}

